//
//  OrderInfoView.h
//  RentTable
//
//  Created by mac on 2024/11/30.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface OrderInfoView : UIView

@property (nonatomic, strong) NSDictionary *orderInfo;
- (instancetype)initWithFrame:(CGRect)frame orderInfo:(NSDictionary *)orderInfo;

@end

NS_ASSUME_NONNULL_END


/**
 // 模拟订单信息
 NSDictionary *orderInfo = @{
     @"订单编号" : @"510439850460458603",
     @"下单时间" : @"2024-10-12 10:29:45",
     @"起租时间" : @"2024-10-12",
     @"归还时间" : @"待定"
 };
 
 // 创建 OrderInfoView 实例，并传入订单信息
 OrderInfoView *orderInfoView = [[OrderInfoView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height) orderInfo:orderInfo];
 
 // 添加 OrderInfoView 到 ViewController 的视图中
 [self.view addSubview:orderInfoView];
 **/
